<template>
  <el-dialog
    :modal="false"
    title="查看箱单原始数据"
    :visible.sync="centerDialogVisible"
    width="50%"
    center
  >
    <div>
      <el-table :data="tableData" stripe style="width: 100%">
        <el-table-column type="index" label="序号" width="150">
        </el-table-column>
        <el-table-column prop="startNumNo" label="箱号" width="180">
        </el-table-column>
        <el-table-column prop="oldWeight" label="重量(KG)"> </el-table-column>
        <el-table-column prop="oldLength" label="长(CM)"> </el-table-column>
        <el-table-column prop="oldWidth" label="宽(CM)"> </el-table-column>
        <el-table-column prop="oldHeight" label="高(CM)"> </el-table-column>
      </el-table>
    </div>
    <span slot="footer" class="dialog-footer">
      <el-button @click="centerDialogVisible = false">取 消</el-button>
      <el-button
        type="primary"
        @click="centerDialogVisible = false"
        v-loading.fullscreen.lock="fullscreenLoading"
        >确 定</el-button
      >
    </span>
  </el-dialog>
</template>

<script>
import { ajax } from "@/store/yg/common/utils";
import axios from "axios";
import * as constant from "@/store/yg/common/constant";
import { m } from "@/store/yg/common/local";
export default {
  props: {
    tableData: {
      type: Array,
      default: function(params) {
        return [{}];
      }
    }
  },
  data() {
    return {
      fullscreenLoading: false,
      centerDialogVisible: false,
      pickerOptions: {
        shortcuts: [
          {
            text: "今天",
            onClick(picker) {
              picker.$emit("pick", new Date());
            }
          },
          {
            text: "昨天",
            onClick(picker) {
              const date = new Date();
              date.setTime(date.getTime() - 3600 * 1000 * 24);
              picker.$emit("pick", date);
            }
          },
          {
            text: "一周前",
            onClick(picker) {
              const date = new Date();
              date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
              picker.$emit("pick", date);
            }
          }
        ]
      },
      paramData: {
        id: 0,
        inStockTime: ""
      },
      rules: {
        inStockTime: [
          {
            required: true,
            message: "时间必填",
            trigger: "blur"
          }
        ]
      }
    };
  },

  methods: {},
  mounted() {}
};
</script>

<style></style>
